/* NOTICE
 
    Jim - the Java Image Manager, copyright (c) 2005 - 2007 Grant Gardner 
 
    Jim is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Jim is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
  
    In addition, as a special exception, you are permitted to link this code
    with the 3rd party libraries required to compile this file and to
    distribute a linked combination including them. You must obey the
    GNU General Public License in all respects for all of the code except for
    those 3rd party libraries that are licenced under terms incompatible with the
    GNU General Public License.  
 
 
 NOTICE */

/*
 * Created by dnoakes on 27-Nov-2002 10:10:47 using IntelliJ IDEA.
 */

package au.com.lastweekend.jim.io.exif.makernote.nikon;

import java.util.HashMap;
import java.util.Map;

import au.com.lastweekend.jim.io.metadata.Directory;

/**
 * 
 * 
 * 
 * @version $Id: NikonType1MakernoteDirectory.java,v 1.3 2006/02/20 12:21:11 ggardner Exp $
 * @author <a href="mailto:grant@lastweekend.com.au"> <Grant Gardner> </a>
 */
public class NikonType1MakernoteDirectory extends Directory {

    // TYPE1 is for E-Series cameras prior to (not including) E990
    public static final int TAG_NIKON_TYPE1_UNKNOWN_1 = 0x0002;
    public static final int TAG_NIKON_TYPE1_QUALITY = 0x0003;
    public static final int TAG_NIKON_TYPE1_COLOR_MODE = 0x0004;
    public static final int TAG_NIKON_TYPE1_IMAGE_ADJUSTMENT = 0x0005;
    public static final int TAG_NIKON_TYPE1_CCD_SENSITIVITY = 0x0006;
    public static final int TAG_NIKON_TYPE1_WHITE_BALANCE = 0x0007;
    public static final int TAG_NIKON_TYPE1_FOCUS = 0x0008;
    public static final int TAG_NIKON_TYPE1_UNKNOWN_2 = 0x0009;
    public static final int TAG_NIKON_TYPE1_DIGITAL_ZOOM = 0x000A;
    public static final int TAG_NIKON_TYPE1_CONVERTER = 0x000B;
    public static final int TAG_NIKON_TYPE1_UNKNOWN_3 = 0x0F00;

    protected static final HashMap<Integer, String> TAG_NAME_MAP = new HashMap<Integer, String>();

    static {
        TAG_NAME_MAP.put(TAG_NIKON_TYPE1_CCD_SENSITIVITY, "CCD Sensitivity");
        TAG_NAME_MAP.put(TAG_NIKON_TYPE1_COLOR_MODE, "Color Mode");
        TAG_NAME_MAP.put(TAG_NIKON_TYPE1_DIGITAL_ZOOM, "Digital Zoom");
        TAG_NAME_MAP.put(TAG_NIKON_TYPE1_CONVERTER, "Fisheye Converter");
        TAG_NAME_MAP.put(TAG_NIKON_TYPE1_FOCUS, "Focus");
        TAG_NAME_MAP.put(TAG_NIKON_TYPE1_IMAGE_ADJUSTMENT, "Image Adjustment");
        TAG_NAME_MAP.put(TAG_NIKON_TYPE1_QUALITY, "Quality");
        TAG_NAME_MAP.put(TAG_NIKON_TYPE1_UNKNOWN_1, "Makernote Unknown 1");
        TAG_NAME_MAP.put(TAG_NIKON_TYPE1_UNKNOWN_2, "Makernote Unknown 2");
        TAG_NAME_MAP.put(TAG_NIKON_TYPE1_UNKNOWN_3, "Makernote Unknown 3");
        TAG_NAME_MAP.put(TAG_NIKON_TYPE1_WHITE_BALANCE, "White Balance");
    }

    public NikonType1MakernoteDirectory(Directory parent) {

        super(parent);
        this.setDescriptor(new NikonType1MakernoteDescriptor(this));
    }

    @Override
    public String getName() {

        return "Nikon(1)";
    }

    @Override
    protected Map<Integer, String> getTagNameMap() {

        return TAG_NAME_MAP;
    }
}